#include <stdio.h>
main()
{
	int c;
	//2473
	while ((c=getchar())!='\n')
	switch (c-'2')
	{
		case 0:
		case 1: putchar(c+4);
		case 2: putchar(c+4);break;
		case 3: putchar(c+4);
		default : putchar(c+2);break;
	}
	return 0;
}
